// function zhanghaofoucs() {
//     $("#zhanghao").attr("placeholder", "");

// };
$(document).ready(function() {
    $("#zhanghao").focus(function() {
        $("#zhanghao").attr("placeholder", "");

    })

    $("#zhanghao").blur(function() {
        $("#zhanghao").attr("placeholder", "账号/电子邮件/手机号码");

    })

    $("#mima").focus(function() {
        $("#mima").attr("placeholder", "");

    })

    $("#mima").blur(function() {
        $("#mima").attr("placeholder", "密码");

    })

    $("#yanzhengma").focus(function() {
        $("#yanzhengma").attr("placeholder", "");

    })

    $("#yanzhengma").blur(function() {
        $("#yanzhengma").attr("placeholder", "验证码");

    })
})


window.onload = function() {
    var eye = document.getElementById("eye")
    var pwd = document.getElementById("mima")
    var flag = 0;
    eye.onclick = function() {
        if (flag == 0) {
            pwd.type = "text";
            eye.src = "images/open.png"
            flag = 1;
        } else {
            pwd.type = "password";
            eye.src = "images/close.png"
            flag = 0;
        }

    }
}